local skel = fk.CreateSkill {
  name = "#lq_yoke_trigger",
  tags = {Skill.Compulsory},
}

skel:addEffect(fk.EnterDying, {
  priority = 0.01,
  mute = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:getMark("@@emo__longqi_temp") ~= 0
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setPlayerMark(player, "@@emo__longqi_temp", 0)
    room:handleAddLoseSkills(player, "-emo__longqi")
  end,
})

return skel
